<?php
basename($_SERVER["PHP_SELF"]) == 'inc.wallet_select.php' && exit('Invalid Access!');
if($r_user['owallet']>0){	
	
	$r_wallet = array(
	//$vars['file']['member']['ewallet_transfer'],
	$vars['file']['member']['withdrawal'],	
	$vars['file']['member']['e_to_es'],
	$vars['file']['member']['ewallet_history'],
	$vars['file']['member']['withdrawal_history'],
	$vars['file']['member']['eswallet_topup'],	
	$vars['file']['member']['eswallet_transfer'],
	$vars['file']['member']['eswallet_history'],	
	$vars['file']['member']['cwallet_history'],	
	$vars['file']['member']['cwallet_transfer'],
	//$vars['file']['member']['cwallet_withdrawal'],	
	//$vars['file']['member']['cwallet_withdrawal_history'],	
	$vars['file']['member']['swallet_history'],
	$vars['file']['member']['swallet_transfer'],
	//$vars['file']['member']['swallet_convert'],	
	$vars['file']['member']['owallet_history']);	
	
	$r_wallet_d = array(
	//$vars['file']['member']['ewallet_transfer'] => __($vars['ewallet_title']).__(' Transfer'),
	$vars['file']['member']['withdrawal'] => __($vars['ewallet_title']).__(' Withdrawal'),	
	$vars['file']['member']['e_to_es'] => __('Convert e-Wallet to e-Register'),
	$vars['file']['member']['ewallet_history'] => __($vars['ewallet_title']).__(' History'),
	$vars['file']['member']['withdrawal_history'] => __($vars['ewallet_title']).__(' Withdrawal History'),	
	$vars['file']['member']['eswallet_topup'] => __('Topup ').__($vars['eswallet_title']),
	$vars['file']['member']['eswallet_transfer'] => __($vars['eswallet_title']).__(' Transfer'),
	$vars['file']['member']['eswallet_history'] => __($vars['eswallet_title']).__(' History'),	
	$vars['file']['member']['cwallet_history'] => __($vars['cwallet_title']).__(' History'),		
	$vars['file']['member']['cwallet_transfer'] => __($vars['cwallet_title']).__(' Transfer'),
	//$vars['file']['member']['cwallet_withdrawal'] => __($vars['cwallet_title']).__(' Withdrawal'),	
	//$vars['file']['member']['cwallet_withdrawal_history'] => __($vars['cwallet_title']).__(' Withdrawal History'),
	$vars['file']['member']['swallet_history'] => __($vars['swallet_title']).__(' History'),	
	$vars['file']['member']['swallet_transfer'] => __($vars['swallet_title']).__(' Transfer'),	
	//$vars['file']['member']['swallet_convert'] => __($vars['swallet_title']).__(' Convert'),	
	$vars['file']['member']['owallet_history'] => __($vars['owallet_title']).__(' History'));
	
}else{		
	
	$r_wallet = array(	
	//$vars['file']['member']['ewallet_transfer'],	
	$vars['file']['member']['withdrawal'],	
	$vars['file']['member']['e_to_es'],	
	$vars['file']['member']['ewallet_history'],	
	$vars['file']['member']['withdrawal_history'],	
	$vars['file']['member']['eswallet_topup'],	
	$vars['file']['member']['eswallet_transfer'],	
	$vars['file']['member']['eswallet_history'],	
	$vars['file']['member']['cwallet_history'],		
	//$vars['file']['member']['cwallet_transfer'],
	//$vars['file']['member']['cwallet_withdrawal'],	
	//$vars['file']['member']['cwallet_withdrawal_history'],	
	$vars['file']['member']['swallet_history'],	
	//$vars['file']['member']['swallet_convert'],	
	$vars['file']['member']['swallet_transfer']);		
	
	$r_wallet_d = array(	
	//$vars['file']['member']['ewallet_transfer'] => __($vars['ewallet_title']).__(' Transfer'),	
	$vars['file']['member']['withdrawal'] => __($vars['ewallet_title']).__(' Withdrawal'),	
	$vars['file']['member']['e_to_es'] => __('Convert e-Wallet to e-Register'),	
	$vars['file']['member']['ewallet_history'] => __($vars['ewallet_title']).__(' History'),	
	$vars['file']['member']['withdrawal_history'] => __($vars['ewallet_title']).__(' Withdrawal History'),	
	$vars['file']['member']['eswallet_topup'] => __('Topup ').__($vars['eswallet_title']),
	$vars['file']['member']['eswallet_transfer'] => __($vars['eswallet_title']).__(' Transfer'),	
	$vars['file']['member']['eswallet_history'] => __($vars['eswallet_title']).__(' History'),	
	$vars['file']['member']['cwallet_history'] => __($vars['cwallet_title']).__(' History'),		
	$vars['file']['member']['cwallet_transfer'] => __($vars['cwallet_title']).__(' Transfer'),	
	//$vars['file']['member']['cwallet_withdrawal'] => __($vars['cwallet_title']).__(' Withdrawal'),	
	//$vars['file']['member']['cwallet_withdrawal_history'] => __($vars['cwallet_title']).__(' Withdrawal History'),	
	$vars['file']['member']['swallet_history'] => __($vars['swallet_title']).__(' History'),	
	//$vars['file']['member']['swallet_convert'] => __($vars['swallet_title']).__(' Convert'),	
	$vars['file']['member']['swallet_transfer'] => __($vars['swallet_title']).__(' Transfer'));
	
}

$inc_wallet_select = build_select($r_wallet, $r_wallet_d, $this_file, 'inc_wallet_type');
$inc_wallet_select = "<div class='right'>$inc_wallet_select <a href='$this_file'>".__('refresh')."</a></div>";
$inc_wallet_select = "";
ob_start();
?>
<script type='text/javascript' src='<?php echo JS_URL."/get_file_gzip.php?file=".urlencode("jquery.js"); ?>'></script>
<script type='text/javascript'>
jQuery(document).ready(function(j){
	j('select[@name=inc_wallet_type]').change(function(){
		var file = j('select[@name=inc_wallet_type] > option:selected').val();
		window.location = file;
	});
});
</script>
<?php
$inc_jvscript = ob_get_clean();
?>